package com.bckj.freshnow.order.trade.fsm.enums;

import com.bckj.freshnow.common.constant.TradeOrderConstants;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 订单状态
 */
@Getter
@RequiredArgsConstructor
public enum TradeOrderStatusEnum {
    INIT(TradeOrderConstants.STATUS_INIT, "初始化"),
    PAY_ONLINE(TradeOrderConstants.STATUS_PAY_ONLINE, "待支付"),
    WAITING_USE(TradeOrderConstants.STATUS_WAITING_USE, "待使用"),
    FINISHED(TradeOrderConstants.STATUS_FINISHED, "已完成"),
    CANCEL(TradeOrderConstants.STATUS_CANCEL, "已取消"),
    TRADE_CLOSE(TradeOrderConstants.STATUS_TRADE_CLOSE, "交易关闭"),
    AFTER_SALE(TradeOrderConstants.STATUS_AFTER_SALE, "售后中"),
    ;

    private final int code;
    private final String name;
}
